package com.it.zhangjun.design.pattern.decorator;

/**
 * @className: SpeedBagDecorator
 * @description: 加急装饰器
 * @author: z00018123
 * @date: 2021/4/30
 **/
public class SpeedBagDecorator extends BagDecorator {
    public SpeedBagDecorator(Bag bag) {
        super(bag);
    }

    @Override
    public void pack() {
        super.pack();
        speedy();
    }

    /**
     * 快件加急
     */
    public void speedy() {
        System.out.println("===============");
        System.out.println("打上加急标识");
    }

}
